--- Makefile.orig	2008-03-14 17:14:23.000000000 -0400
+++ Makefile	2008-03-14 17:14:37.000000000 -0400
@@ -1,5 +1,5 @@
 aircrack-ptw: aircrack-ptw.c aircrack-ptw-lib.c aircrack-ptw-lib.h
-	gcc -o aircrack-ptw -Wall -fomit-frame-pointer -O3 -lpcap aircrack-ptw.c aircrack-ptw-lib.c
+	gcc -o aircrack-ptw -Wall -fomit-frame-pointer -O3 aircrack-ptw.c aircrack-ptw-lib.c -lpcap
 
 attacksim: attacksim.c aircrack-ptw-lib.c aircrack-ptw-lib.h
 	gcc -o attacksim -Wall -fomit-frame-pointer -O3 -lpcap attacksim.c aircrack-ptw-lib.c
